package org.java.enumpack;

/**
 * @author Zhang Guangyong
 * @desacription 枚举测试类
 * @date 2019年07月19日 9:28
 */
public class EnumTest {

    public void judge(SeasonEnum s) {
        switch (s) {
            case SPRING:
                System.out.println("春");
                break;
            case SUMMER:
                System.out.println("夏");
                break;
            case FALL:
                System.out.println("秋");
                break;
            case WINTER:
                System.out.println("冬");
                break;
        }
    }

    public static void main(String[] args) {
        for (Enum s : SeasonEnum.values()) {
            System.out.println(s);
        }

        new EnumTest().judge(SeasonEnum.SPRING);
    }

}
